{template header}
<style type="text/css">
    img.header{max-height: 50px; max-width: 50px;}
    .span6 button{margin-top:10px;}
</style>
<script type="text/javascript">
    $(document).ready(function(){
        $("button.close").click(function()
        {
            var uid = $(this).next("input").val();
            if(remUser(uid) != false)
            {
                alert('操作成功');
                $(this).parents("li.span4").remove();
            }
            else
            {
                alert('操作失败');
            }
        });
    });
    // 移除推荐好友
    function remUser(uid)
    {
        var rel = false;
        $.ajax({url:"index.php?c=admin&a=remRecFriend&uid=" + uid,
            async:false,
            dataType:"json",
            error:function(){
                    // alert('未知错误');
                },
            success:function(data, status){
                turnData = eval(data);
                if(turnData.err == 0)
                {
                    rel = true;
                }
            }
        });
        return rel;
    }
</script>
<div class="container-fluid">
    <div class="row-fluid" style="margin-bottom:10px;">
        <div class="span12">
            <div class="row-fluid">
                <div class="span4">
                    <a href="index.php?c=admin&a=postImgList">
                        <button class="btn" type="button">帖子图片展示</button>
                    </a>
                </div>
                <div class="span4">
                    <a href="index.php?c=admin&a=friendRecAlternateList">
                        <button class="btn" type="button">备选用户-图片列表</button>
                    </a>
                </div>
            </div>
            
        </div>
    </div>
    <div class="row-fluid">
        <div class="span12">
            {if $msg}
            <div class="alert alert-info">
                 <button type="button" class="close" data-dismiss="alert">×</button>
                <h4>
                    提示!
                </h4> {$msg}
            </div>
            {/if}
            {loop $reclist $k $v}
            {if $k%3 == 0}
            <ul class="thumbnails">
            {/if}
                <li class="span4">
                    <div class="span12">
                        <button type="button" class="close">x &nbsp;</button>
                        <input type="hidden" name="uid" value="{$v['uid']}">
                    </div>
                    <div class="thumbnail">
                        <div class="row-fluid">
                            {loop $v['imgs'] $kk $img}
                            <div class="span4"><img src="{$img}" /></div>
                            {/loop}
                        </div>
                        <div class="row-fluid">
                            <div class="span4"><img class="header img-circle" src="{$v['header']}" /></div>
                            <div class="span6">
                                <button class="btn disabled btn-info" type="button">{$v['nickname']}</button>
                            </div>
                        </div>
                    </div>
                </li>
            {if $v['endUl'] == 1}
            </ul>
            {/if}
            {/loop}
        </div>
    </div>
</div>
{template footer}